﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;

namespace YAPL.Util {
	public static class ReflectionExtensions {
		public static MethodInfo GetIndexerSetMethod(this Type t, Type[] parameterTypes) {
			return t.GetProperty("Item", parameterTypes).GetSetMethod();
		}
		public static MethodInfo GetIndexerGetMethod(this Type t, Type[] parameterTypes) {
			return t.GetProperty("Item", parameterTypes).GetGetMethod();
		}
	}
}
